#{extends 'main.html' /} 
#{set title:'Atendentes' /}

<div class="row">
	<div class="span12">

		<div>
		
			#{if !atendentes.empty}
		
			<table class="table table-striped table-bordered table-condensed">
				<thead>
					<tr>
						<th>Nome</th>
						<th>login</th>
						<th>matricula</th>
						<th>Ações</th>
					</tr>
				</thead>
				<tbody>
					#{list items:atendentes, as: 'atendente'}
					<tr>
						<td>${atendente.nome}</td>
						<td>${atendente.login}</td>
						<td>${atendente.matricula}</td>
						<td><a href="@{atendentes.show(atendente.id)}"
							class="icon-folder-open"></a>
							<a href="@{atendentes.delete(atendente.id)}"
							class="icon-remove"  onclick="return confirm('Confirma?')"></a>
					</tr>
					#{/list}
				</tbody>
			</table>
			
			#{/if}
			
		</div>


		<div id="actions">
			<a href="@{Atendentes.create}" class="btn btn-success"><i class="icon-white icon-plus"></i></a>
		</div>
		
	</div>
</div>